This is used to make sure the numeric type is supported. More...
#include <numeric_type_check.hpp>
Classes | |
struct | isSame |
Public Types | |
typedef boost::mpl::not_ < boost::is_same< Found, NotFound > > | OK |
Static Public Attributes | |
static const bool | check = OK::value |
static const bool | isComplex = boost::is_same<T, ComplexType>::value |
This is used to make sure the numeric type is supported.
GridPACK only supports a limited number of element types for matrices and vectors, specifically double
and std::complex<double>
. This will cause a compilation failure if the type is not supported.
typedef boost::mpl::not_< boost::is_same<Found, NotFound> > gridpack::math::TypeCheck< T >::OK |
const bool gridpack::math::TypeCheck< T >::check = OK::value [static] |
const bool gridpack::math::TypeCheck< T >::isComplex = boost::is_same<T, ComplexType>::value [static] |